<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'superLogin.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <style type="text/css">
    table{position:absolute;left:420px;top:180px;}
    </style>
  </head>
  
  <body background="img/4561.jpg">
    <form name="form1" action="doSuperLoginServlet" method="post">
      <table border="2" bordercolor="pink">
        <tr>
          <td align="center">请输入密码</td>
          <td align="center">
            <input type="password" name="superPass" value=""/>
          </td>
        </tr>
        <tr>
          <td align="center" colspan="2">
            <input type="reset" name="rs" value="重置"/>
            <input type="submit" name="sb" value="提交" onclick="return chek();"/>
            <a href="login.jsp">返回</a>
          </td>
        </tr>
      </table>
    </form>
  </body>
  <script type="text/javascript">
  function chek(){
	  var superPass=document.getElementById("superPass").value;
	  if(""==superPass){
		  alert("请输入密码!");
		  return false;
	  }else{
		  return true;
	  }
  }
  </script>
</html>
